import React, { Component, PureComponent } from 'react';

class YouHua extends PureComponent {
    state={
        myname:"碰磕"
    }
    render() {
        console.log(this.state.myname)
        return (
            <div>
                <button onClick={()=>{
                    this.setState({
                        myname:"Study"
                    })
                }}>点我(性能优化)</button>
            </div>
        );
    }
}

export default YouHua;